package com.hxc.web.controller.screen;

import com.hxc.basicdata.domain.TVillagerConditions;
import com.hxc.basicdata.domain.TVillagerInfo;
import com.hxc.basicdata.service.ITVillagerConditionsService;
import com.hxc.basicdata.service.ITVillagerInfoService;
import com.hxc.common.core.domain.AjaxResult;
import com.hxc.interest.service.ITSummaryInfoService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 数据大屏接口
 * @author WangSf
 * @version V1.0
 * @Title DataScreenController
 * @date 2021/8/26 11:19
 **/
@Api(tags = "数据大屏接口管理")
@RestController("/screen")
public class DataScreenController {

    @Autowired
    private ITVillagerInfoService tVillagerInfoService;

    @ApiOperation(value = "村民年龄分布统计")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "villageSort", value = "村民类别(0本地，1外地)", dataType = "Integer")
    })
    @GetMapping("/queryAgeDistributeList")
    public AjaxResult queryAgeDistributeList(TVillagerInfo tVillagerInfo){
        return tVillagerInfoService.queryAgeDistributeList(tVillagerInfo);
    }



}
